<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">

    <div class="row">
        <div style="background: #ffffff;">

            <form class="form-horizontal">
                <div class="panel-default">
                    <div class="panel-body panel-dialog">
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'项目' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">

                                    <select class="form-control" options="projectName" name="projectName"
                                            ng-options="y.name for (x, y) in projectNameOptions | dySelectLanguage" ng-model="currentLanguage.projectNameOption">
                                        <option value="">{{'请选择' | dyLanguage}}</option>
                                    </select>
                                </div>
                                <span class="help-block">{{'请输入项目' | dyLanguage}}</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'语言' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" ng-model="currentLanguage.locale"/>
                                </div>
                                <span class="help-block">{{'请输入语言' | dyLanguage}}</span>
                            </div>
                            <label class="control-label panel-hint">*</label>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'语言描述' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" ng-model="currentLanguage.name"/>
                                </div>
                                <span class="help-block">{{'请输入语言描述' | dyLanguage}}</span>
                            </div>
                            <label class="control-label panel-hint">*</label>
                        </div>

                        <!--<div class="form-group">-->
                        <!--<label class="col-md-3 col-xs-12 control-label">{{'模版下载' | dyLanguage}}</label>-->

                        <!--<div class="col-md-6 col-xs-12">-->
                        <!--<a href="javascript:void(0)" ng-click="downloadTemplate('WEB_LEARNING_MAP')">{{'前端模版' | dyLanguage}}</a>-->
                        <!--&nbsp;| &nbsp;-->
                        <!--<a href="javascript:void(0)" ng-click="downloadTemplate('WEB_ENTERPRISE')">{{'客服模版' | dyLanguage}}</a>-->
                        <!--</div>-->
                        <!--<label class="control-label panel-hint">*</label>-->
                        <!--</div>-->

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label"></label>

                            <div class="col-md-2 col-xs-12">
                                <js-xls onread="read" onerror="error" class="fileinput btn-info" title="读取语言包"></js-xls>
                            </div>
                            <!--<div class="col-md-4 col-xs-12">-->
                            <!--<form name="form" method="post" enctype="multipart/form-data">-->
                            <!--<a ngf-select ngf-change="upload($files)" ngf-max-size="50MB" ngf-min-height="100"-->
                            <!--ngf-resize="{width: 1000, height: 1000}" style="cursor: pointer">{{'上传语言包' | dyLanguage}}</a>-->
                            <!--</form>-->
                            <!--<span class="help-block">-->
                            <!--{{'语言包:' | dyLanguage}}-->
                            <!--<i style="cursor: pointer; " ng-click="download(currentLanguage)">{{currentLanguage.fileName}}-->
                            <!--<span ng-show="showProgress">({{progress.value}}%)</span>-->
                            <!--</i>-->
                            <!--</span>-->
                            <!--</div>-->
                            <!--<label class="control-label panel-hint">*</label>-->
                        </div>

                    </div>
                    <div class="panel-footer" style="text-align: center;">
                        <button class="btn btn-danger" ng-click="cancel()"><i class="fa fa-times"></i>{{'取消' | dyLanguage}}</button>
                        <button class="btn btn-info" ng-click="submit()"><i class="fa fa-check"></i>{{'确定' | dyLanguage}}</button>
                    </div>
                </div>
            </form>

        </div>
    </div>

</div>
<!-- END PAGE CONTENT WRAPPER -->